import request from '@/utils/request'

// 查询质检设备档案列表
export function listNcQualityInspectionEquipment(query) {
  return request({
    url: '/business/NcQualityInspectionEquipment/list',
    method: 'get',
    params: query
  })
}

// 查询质检设备档案详细
export function getNcQualityInspectionEquipment(id) {
  return request({
    url: '/business/NcQualityInspectionEquipment/' + id,
    method: 'get'
  })
}

// 新增质检设备档案
export function addNcQualityInspectionEquipment(data) {
  return request({
    url: '/business/NcQualityInspectionEquipment',
    method: 'post',
    data: data
  })
}

// 修改质检设备档案
export function updateNcQualityInspectionEquipment(data) {
  return request({
    url: '/business/NcQualityInspectionEquipment',
    method: 'put',
    data: data
  })
}

// 删除质检设备档案
export function delNcQualityInspectionEquipment(id) {
  return request({
    url: '/business/NcQualityInspectionEquipment/' + id,
    method: 'delete'
  })
}
